#include <iostream>
#include "Thing.h"
#include "Hello.h"

int main()
{
    try{
        Hello hello;
        CCore::getInstance()->AddScene(&hello);
        CCore::getInstance()->SetCurrentScene(0);
        CCore::getInstance()->Initialize();

        CVideoManager::getInstance()->SetVideoMode(false,640,480);
        CVideoManager::getInstance()->Screen.SetColorKey(255,0,255);
        CVideoManager::getInstance()->SetAppName("Thing | Example hello","");
        CTimerManager::getInstance()->SetInterval(30,30);

        CCore::getInstance()->Run();
        delete CCore::getInstance();
    }catch(CException& e){
        std::cout << e.what() << std::endl;
    }


    return 0;
}
